<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/screen.css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Team 2 - Leave Application</title>
</head>
<body>
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
		<h1 style="color: #fff; font-style: oblique;">NUS-ISS(LAMS)</h1>
	</div>
	<!-- end logo -->
	</div>
<!-- End: page-top -->
</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
	<!--  start nav-outer-repeat................................................................................................. START -->
	<div class="nav-outer-repeat">
		<!--  start nav-outer -->
		<div class="nav-outer">

			<!-- start nav-right -->
			<div id="nav-right">
				<div class="nav">
					<div class="table">
						<div class="nav-divider">&nbsp;</div>
						<label class="current" id="username"><i>${loggedEmployee.name}</i></label>
						<div class="nav-divider">&nbsp;</div>
						<a href="${pageContext.request.contextPath}/logout"><label class="current"
							id="logout">Logout</label></a>
					</div>
					<!-- end nav-right -->
				</div>
			</div>

			<!--  start nav -->
			<div class="nav">
				<div class="table">
					<ul class="select">
						<li  class="current"><a href="${pageContext.request.contextPath}/manager/ApproveRejectLeave/${loggedEmployee.employeeId}.html"><b>Approve/Reject Leave</b></a></li>
			<li><a href="${pageContext.request.contextPath}/manager/viewAllEmpHistory/${loggedEmployee.employeeId}.html"><b>View All Leave History</b></a></li>
			<li><a href="${pageContext.request.contextPath}/manager/report.html"><b>Report</b></a></li>
					</ul>
					<div class="clear"></div>

				</div>
				<div class="clear"></div>
			</div>
			<!--  start nav -->

		</div>
		<div class="clear"></div>
		<!--  start nav-outer -->
	</div>
	<!--  start nav-outer-repeat................................................... END -->

	<div class="clear"></div>

	<!-- start content-outer ........................................................................................................................START -->
	<div id="content-outer">
		<!-- start content -->
		<div id="content">

			<!--  start page-heading -->
			<div id="page-heading">
				<h1>Employee Leave History</h1>
			</div>
			<!-- end page-heading -->

			<table border="0" width="100%" cellpadding="0" cellspacing="0"
				id="content-table">
				<tr>
					<th rowspan="3" class="sized"><img
						src="${pageContext.request.contextPath}/resources/images/shared/side_shadowleft.jpg" width="20"
						height="300" alt="" /></th>
					<th class="topleft"></th>
					<td id="tbl-border-top">&nbsp;</td>
					<th class="topright"></th>
					<th rowspan="3" class="sized"><img
						src="${pageContext.request.contextPath}/resources/images/shared/side_shadowright.jpg" width="20"
						height="300" alt="" /></th>
				</tr>
				<tr>
					<td id="tbl-border-left"></td>
					<td>
						<!--  start content-table-inner ...................................................................... START -->
						<div id="content-table-inner">

							<!--  start table-content  -->
							<div id="table-content">
								<!--  start product-table ..................................................................................... -->
								<form id="mainform" action="">
									<table border="0" width="100%" cellpadding="0" cellspacing="0"
										id="product-table">
										<tr>
											<td>Employee ID</td>
											<td>Employee Name</td>
											<td>Designation</td>
											<td>Leave Type</td>
											<td>Apply Date</td>
											<td>Approve Date</td>
											<td>From Date</td>
											<td>To Date</td>
											<td>Manager Comment</td>
											<td>Status</td>
										</tr>
										<c:forEach items="${LeaveList}" var="leave_application">
										<tr>
											<td>${leave_application.employee.employeeId}</td>
											<td>${leave_application.employee.name}</td>
											<td>${leave_application.employee.designation}</td>
											<td>${leave_application.leaveType.description}</td>
											<td>${leave_application.applyDate}</td>
											<td>${leave_application.approveDate}</td>
											<td>${leave_application.fromDate}</td>
											<td>${leave_application.toDate}</td>
											<td>${leave_application.mangerComment}</td>
											<td>${leave_application.status}</td>
																					
										</tr>
										</c:forEach>
									</table>
									<!--  end product-table................................... -->
								</form>
							</div>
							<!--  end content-table  -->

							<!--  start paging..................................................... -->
							<table border="0" cellpadding="0" cellspacing="0"
								id="paging-table">
								<tr>
									<td><a href="" class="page-far-left"></a> <a href=""
										class="page-left"></a>
										<div id="page-info">
											Page <strong>1</strong> / 15
										</div> <a href="" class="page-right"></a> <a href=""
										class="page-far-right"></a></td>
									<td><select class="styledselect_pages">
											<option value="">Number of rows</option>
											<option value="">1</option>
											<option value="">2</option>
											<option value="">3</option>
									</select></td>
								</tr>
							</table>
							<!--  end paging................ -->

							<div class="clear"></div>

						</div> <!--  end content-table-inner ............................................END  -->
					</td>
					<td id="tbl-border-right"></td>
				</tr>
				<tr>
					<th class="sized bottomleft"></th>
					<td id="tbl-border-bottom">&nbsp;</td>
					<th class="sized bottomright"></th>
				</tr>
			</table>
			<div class="clear">&nbsp;</div>

		</div>
		<!--  end content -->

		<div class="clear">&nbsp;</div>
	</div>
	<!--  end content-outer........................................................END -->
<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	ISS SA-37 TEAM 2 @  GILBRT @ KHIN LAI PHYO AUNG @ LIU CHANG @ MAHEEN @ NAN MAI NGIN @ NARESH SARAVANA </div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
</body>
</html>